﻿using System.Collections.Generic;
using Metro.Kashikoi.Service.Common.Entity;
using Metro.Kashikoi.ServiceContract.Item;

namespace Metro.Kashikoi.Service.Item.Business
{
    /// <summary>
    /// This interface provides methods to manage the vendor.
    /// </summary>
    interface IVendorFacade
    {
        /// <summary>
        /// Creates the vendor.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="vendor">The vendor.</param>
        void CreateVendor(IUnitOfWork context, Vendor vendor);

        /// <summary>
        /// Updates the vendor.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="vendor">The vendor.</param>
        void UpdateVendor(IUnitOfWork context, Vendor vendor);

        /// <summary>
        /// Deletes the vendor.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="vendorId">The vendor id.</param>
        void DeleteVendor(IUnitOfWork context, int vendorId);

        /// <summary>
        /// Gets all vendors.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <returns>A list of vendors.</returns>
        IList<Vendor> GetAllVendors(IUnitOfWork context);

        /// <summary>
        /// Gets the vendor.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="id">The id.</param>
        /// <returns>The vendor.</returns>
        Vendor GetVendor(IUnitOfWork context, int id);
    }
}
